/*
 *  histogram.h
 *  libCV
 *
 *  Created by Gregory Koch on 17/01/11.
 *  Copyright 2011 IFlyBotIV. All rights reserved.
 *
 */

#ifndef HISTOGRAM_H
#define HISTOGRAM_H

#include "libCV.h"

#define SIZE_HIST	256

typedef struct hist_s
{
	float data[SIZE_HIST];
} hist_t;

hist_t init_hist();

hist_t calc_hist(image_t image, zone_t zone);

hist_t calc_nhist(image_t image, zone_t zone);

hist_t calc_weighted_hist(image_t image, zone_t zone);

hist_t calc_weighted_nhist(image_t image, zone_t zone);

float correl_hist(hist_t hist1, hist_t hist2);

float dist_hist(hist_t hist1, hist_t hist2);

#endif
